﻿using System.Collections.Generic;
using System.Runtime.Serialization;

namespace IMDBApi.Contracts.Entities.Title.UserReviews
{
    [DataContract]
    public class UserReviews
    {
        [DataMember(Name = "exp")]
        public int Exp { get; set; }

        [DataMember(Name = "data")]
        public Data Data { get; set; }
    }

    [DataContract]
    public class Data
    {
        [DataMember(Name = "user_comments")]
        public List<UserComment> UserComments { get; set; }

        [DataMember(Name = "tconst")]
        public string Tconst { get; set; }

        [DataMember(Name = "type")]
        public string Type { get; set; }

        [DataMember(Name = "title")]
        public string Title { get; set; }

        [DataMember(Name = "total")]
        public int Total { get; set; }

        [DataMember(Name = "year")]
        public string Year { get; set; }
    }

    [DataContract]
    public class UserComment
    {
        [DataMember(Name = "user_rating")]
        public int UserRating { get; set; }

        [DataMember(Name = "date")]
        public string Date { get; set; }

        [DataMember(Name = "status")]
        public string Status { get; set; }

        [DataMember(Name = "user_name")]
        public string UserName { get; set; }

        [DataMember(Name = "user_score")]
        public int UserScore { get; set; }

        [DataMember(Name = "summary")]
        public string Summary { get; set; }

        [DataMember(Name = "user_location")]
        public string UserLocation { get; set; }

        [DataMember(Name = "text")]
        public string Text { get; set; }

        [DataMember(Name = "user_score_count")]
        public int UserScoreCount { get; set; }
    }
}
